package com.zxp.mall.authserve.feign;


import com.zxp.mall.authserve.vo.SocialUser;
import com.zxp.mall.authserve.vo.UserLoginVo;
import com.zxp.mall.authserve.vo.UserRegisterVo;
import com.zxp.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/registe")
    public R register(@RequestBody UserRegisterVo vo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    public R oauthLogin(@RequestBody SocialUser user);
}
